package com.innjia.sys.service;

import com.innjia.sys.entity.ContractTemplateEntity;

import java.util.List;
import java.util.Map;

/**
 * 
 * 
 * @author innjia
 * @email innjia@innjia.com
 * @date 2017-11-18 13:28:59
 */
public interface ContractTemplateService {
	
	ContractTemplateEntity queryObject(String id);
	
	List<ContractTemplateEntity> queryList(Map<String, Object> map);

    List<ContractTemplateEntity> queryListByBean(ContractTemplateEntity entity);
	
	int queryTotal(Map<String, Object> map);
	
	int save(ContractTemplateEntity contractTemplate);
	
	int update(ContractTemplateEntity contractTemplate);
	
	int delete(String id);
	
	int deleteBatch(String[] ids);
	
	/**
	 * 根据合同类型查找模板
	 * @param contractType
	 * @return
	 * ContractTemplateEntity
	 */
	ContractTemplateEntity queryByContractType(String contractType);
}
